package pro.spring.controller.frontController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import pro.spring.model.Information;

@Controller
@RequestMapping("infor")
public class FinformationController  extends BaseController{
private String local = "page/front/bianji/";
	
	private Integer pagesize = 10 ;
	
	@RequestMapping(value="bianji.html",method=RequestMethod.GET)
	public String index(){
		
		return local+"bianji";
	}
	
	@ResponseBody
	@RequestMapping(value="addwenzhang.json",method=RequestMethod.POST)
	public int add(Information informa){
		informa.setUsersUId(1);
		
		return informationService.insert(informa);
	}
}
